/*
 * XML Type:  ServiceRefType
 * Namespace: http://docs.oasis-open.org/wsrm/2004/06/reference-1.1.xsd
 * Java type: cgl.narada.wsinfra.schemas.reference.ServiceRefType
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.wsinfra.schemas.reference.impl;
/**
 * An XML ServiceRefType(@http://docs.oasis-open.org/wsrm/2004/06/reference-1.1.xsd).
 *
 * This is a complex type.
 */
public class ServiceRefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.wsinfra.schemas.reference.ServiceRefType
{
    
    public ServiceRefTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName REFERENCESCHEME$0 = 
        new javax.xml.namespace.QName("", "reference-scheme");
    
    
    /**
     * Gets the "reference-scheme" attribute
     */
    public java.lang.String getReferenceScheme()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCESCHEME$0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "reference-scheme" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetReferenceScheme()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REFERENCESCHEME$0);
            return target;
        }
    }
    
    /**
     * True if has "reference-scheme" attribute
     */
    public boolean isSetReferenceScheme()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(REFERENCESCHEME$0) != null;
        }
    }
    
    /**
     * Sets the "reference-scheme" attribute
     */
    public void setReferenceScheme(java.lang.String referenceScheme)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCESCHEME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REFERENCESCHEME$0);
            }
            target.setStringValue(referenceScheme);
        }
    }
    
    /**
     * Sets (as xml) the "reference-scheme" attribute
     */
    public void xsetReferenceScheme(org.apache.xmlbeans.XmlAnyURI referenceScheme)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REFERENCESCHEME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(REFERENCESCHEME$0);
            }
            target.set(referenceScheme);
        }
    }
    
    /**
     * Unsets the "reference-scheme" attribute
     */
    public void unsetReferenceScheme()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(REFERENCESCHEME$0);
        }
    }
}
